package HomeWork4;

public class TestWarrior {
    public static void main(String[] args) {
        Warrior warrior = new Warrior(20,50);
        warrior.win();
        int blood = warrior.injurre(20);
        System.out.println("血液值减少20,当前血液值为:" + blood);
        System.out.println("******************************");
        BloodWarrior bloodWarrior = new BloodWarrior(30,50);
        bloodWarrior.win();
        bloodWarrior.injure(40);
    }
}